<?php

namespace App\Entity;

use ApiPlatform\Core\Annotation\ApiResource;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;

/**
 * @ApiResource()
 * @ORM\Entity(repositoryClass="App\Repository\SarsUserRepository")
 */
class SarsUser
{
    /**
     * @ORM\Id()
     * @ORM\GeneratedValue()
     * @ORM\Column(type="integer")
     */
    private $id;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $dengjileibie;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $zhongdianyiqumingcheng;

    /**
     * @ORM\Column(type="string", length=255)
     */
    private $xingming;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $xingbie;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $shenfenzhenghao;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $lianxidianhua;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $gongzuodanwei;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $xiangxizhuzhi;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $fangwuleixing;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $likairiqi;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $likaidiquzhuzhi;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $jinruhekouriqi;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $laihekoumudi;

    /**
     * @ORM\Column(type="text", nullable=true)
     */
    private $wangfanxiangxixingcheng;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $yantushifoutingliu;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $tongxingrenyuan;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $miqiejiechurenyuan;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $tiwen;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $bushizhengzhuang;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $geliguancha;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $gelifangshi;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $jiechugeli;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $zerenren;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $suifangyuan;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $suifangjibie;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $zhongdiansuifangyuanyin;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $renyuanxinxilaiyuan;

    /**
     * @ORM\Column(type="string", length=255, nullable=true)
     */
    private $dengjiriqi;

    /**
     * @ORM\Column(type="integer", nullable=true)
     */
    private $createBy;

    /**
     * @ORM\OneToMany(targetEntity="App\Entity\SarsUserLog", mappedBy="user",fetch="EAGER")
     */
    private $logs;

    /**
     * @ORM\OneToMany(targetEntity="App\Entity\SarsUserTreatLog", mappedBy="user",fetch="EAGER")
     */
    private $treatLogs;

    public function __construct()
    {
        $this->logs = new ArrayCollection();
        $this->treatLogs = new ArrayCollection();
    }

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getDengjileibie(): ?string
    {
        return $this->dengjileibie;
    }

    public function setDengjileibie(?string $dengjileibie): self
    {
        $this->dengjileibie = $dengjileibie;

        return $this;
    }

    public function getZhongdianyiqumingcheng(): ?string
    {
        return $this->zhongdianyiqumingcheng;
    }

    public function setZhongdianyiqumingcheng(?string $zhongdianyiqumingcheng): self
    {
        $this->zhongdianyiqumingcheng = $zhongdianyiqumingcheng;

        return $this;
    }

    public function getXingming(): ?string
    {
        return $this->xingming;
    }

    public function setXingming(string $xingming): self
    {
        $this->xingming = $xingming;

        return $this;
    }

    public function getXingbie(): ?string
    {
        return $this->xingbie;
    }

    public function setXingbie(?string $xingbie): self
    {
        $this->xingbie = $xingbie;

        return $this;
    }

    public function getShenfenzhenghao(): ?string
    {
        return $this->shenfenzhenghao;
    }

    public function setShenfenzhenghao(?string $shenfenzhenghao): self
    {
        $this->shenfenzhenghao = $shenfenzhenghao;

        return $this;
    }

    public function getLianxidianhua(): ?string
    {
        return $this->lianxidianhua;
    }

    public function setLianxidianhua(?string $lianxidianhua): self
    {
        $this->lianxidianhua = $lianxidianhua;

        return $this;
    }

    public function getGongzuodanwei(): ?string
    {
        return $this->gongzuodanwei;
    }

    public function setGongzuodanwei(?string $gongzuodanwei): self
    {
        $this->gongzuodanwei = $gongzuodanwei;

        return $this;
    }

    public function getXiangxizhuzhi(): ?string
    {
        return $this->xiangxizhuzhi;
    }

    public function setXiangxizhuzhi(?string $xiangxizhuzhi): self
    {
        $this->xiangxizhuzhi = $xiangxizhuzhi;

        return $this;
    }

    public function getFangwuleixing(): ?string
    {
        return $this->fangwuleixing;
    }

    public function setFangwuleixing(?string $fangwuleixing): self
    {
        $this->fangwuleixing = $fangwuleixing;

        return $this;
    }

    public function getLikairiqi(): ?string
    {
        return $this->likairiqi;
    }

    public function setLikairiqi(?string $likairiqi): self
    {
        $this->likairiqi = $likairiqi;

        return $this;
    }

    public function getLikaidiquzhuzhi(): ?string
    {
        return $this->likaidiquzhuzhi;
    }

    public function setLikaidiquzhuzhi(?string $likaidiquzhuzhi): self
    {
        $this->likaidiquzhuzhi = $likaidiquzhuzhi;

        return $this;
    }

    public function getJinruhekouriqi(): ?string
    {
        return $this->jinruhekouriqi;
    }

    public function setJinruhekouriqi(?string $jinruhekouriqi): self
    {
        $this->jinruhekouriqi = $jinruhekouriqi;

        return $this;
    }

    public function getLaihekoumudi(): ?string
    {
        return $this->laihekoumudi;
    }

    public function setLaihekoumudi(?string $laihekoumudi): self
    {
        $this->laihekoumudi = $laihekoumudi;

        return $this;
    }

    public function getWangfanxiangxixingcheng(): ?string
    {
        return $this->wangfanxiangxixingcheng;
    }

    public function setWangfanxiangxixingcheng(?string $wangfanxiangxixingcheng): self
    {
        $this->wangfanxiangxixingcheng = $wangfanxiangxixingcheng;

        return $this;
    }

    public function getYantushifoutingliu(): ?string
    {
        return $this->yantushifoutingliu;
    }

    public function setYantushifoutingliu(?string $yantushifoutingliu): self
    {
        $this->yantushifoutingliu = $yantushifoutingliu;

        return $this;
    }

    public function getTongxingrenyuan(): ?string
    {
        return $this->tongxingrenyuan;
    }

    public function setTongxingrenyuan(?string $tongxingrenyuan): self
    {
        $this->tongxingrenyuan = $tongxingrenyuan;

        return $this;
    }

    public function getMiqiejiechurenyuan(): ?string
    {
        return $this->miqiejiechurenyuan;
    }

    public function setMiqiejiechurenyuan(?string $miqiejiechurenyuan): self
    {
        $this->miqiejiechurenyuan = $miqiejiechurenyuan;

        return $this;
    }

    public function getTiwen(): ?string
    {
        return $this->tiwen;
    }

    public function setTiwen(?string $tiwen): self
    {
        $this->tiwen = $tiwen;

        return $this;
    }

    public function getBushizhengzhuang(): ?string
    {
        return $this->bushizhengzhuang;
    }

    public function setBushizhengzhuang(?string $bushizhengzhuang): self
    {
        $this->bushizhengzhuang = $bushizhengzhuang;

        return $this;
    }

    public function getGeliguancha(): ?string
    {
        return $this->geliguancha;
    }

    public function setGeliguancha(?string $geliguancha): self
    {
        $this->geliguancha = $geliguancha;

        return $this;
    }

    public function getGelifangshi(): ?string
    {
        return $this->gelifangshi;
    }

    public function setGelifangshi(?string $gelifangshi): self
    {
        $this->gelifangshi = $gelifangshi;

        return $this;
    }

    public function getJiechugeli(): ?string
    {
        return $this->jiechugeli;
    }

    public function setJiechugeli(?string $jiechugeli): self
    {
        $this->jiechugeli = $jiechugeli;

        return $this;
    }

    public function getZerenren(): ?string
    {
        return $this->zerenren;
    }

    public function setZerenren(?string $zerenren): self
    {
        $this->zerenren = $zerenren;

        return $this;
    }

    public function getSuifangyuan(): ?string
    {
        return $this->suifangyuan;
    }

    public function setSuifangyuan(?string $suifangyuan): self
    {
        $this->suifangyuan = $suifangyuan;

        return $this;
    }

    public function getSuifangjibie(): ?string
    {
        return $this->suifangjibie;
    }

    public function setSuifangjibie(?string $suifangjibie): self
    {
        $this->suifangjibie = $suifangjibie;

        return $this;
    }

    public function getZhongdiansuifangyuanyin(): ?string
    {
        return $this->zhongdiansuifangyuanyin;
    }

    public function setZhongdiansuifangyuanyin(?string $zhongdiansuifangyuanyin): self
    {
        $this->zhongdiansuifangyuanyin = $zhongdiansuifangyuanyin;

        return $this;
    }

    public function getRenyuanxinxilaiyuan(): ?string
    {
        return $this->renyuanxinxilaiyuan;
    }

    public function setRenyuanxinxilaiyuan(?string $renyuanxinxilaiyuan): self
    {
        $this->renyuanxinxilaiyuan = $renyuanxinxilaiyuan;

        return $this;
    }

    public function getDengjiriqi(): ?string
    {
        return $this->dengjiriqi;
    }

    public function setDengjiriqi(?string $dengjiriqi): self
    {
        $this->dengjiriqi = $dengjiriqi;

        return $this;
    }

    public function getCreateBy(): ?int
    {
        return $this->createBy;
    }

    public function setCreateBy(?int $createBy): self
    {
        $this->createBy = $createBy;

        return $this;
    }

    /**
     * @return Collection|SarsUserLog[]
     */
    public function getLogs(): Collection
    {
        return $this->logs;
    }

    public function addLog(SarsUserLog $log): self
    {
        if (!$this->logs->contains($log)) {
            $this->logs[] = $log;
            $log->setUser($this);
        }

        return $this;
    }

    public function removeLog(SarsUserLog $log): self
    {
        if ($this->logs->contains($log)) {
            $this->logs->removeElement($log);
            // set the owning side to null (unless already changed)
            if ($log->getUser() === $this) {
                $log->setUser(null);
            }
        }

        return $this;
    }

    /**
     * @return Collection|SarsUserTreatLog[]
     */
    public function getTreatLogs(): Collection
    {
        return $this->treatLogs;
    }

    public function addTreatLog(SarsUserTreatLog $treatLog): self
    {
        if (!$this->treatLogs->contains($treatLog)) {
            $this->treatLogs[] = $treatLog;
            $treatLog->setUser($this);
        }

        return $this;
    }

    public function removeTreatLog(SarsUserTreatLog $treatLog): self
    {
        if ($this->treatLogs->contains($treatLog)) {
            $this->treatLogs->removeElement($treatLog);
            // set the owning side to null (unless already changed)
            if ($treatLog->getUser() === $this) {
                $treatLog->setUser(null);
            }
        }

        return $this;
    }
}
